package com.ruoyi.common.utils.BigDecimalUtils;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author Dale Mao    ---多多 Email:453918229@qq.com
 * @description IntelliJ IDEA com.worldmini.htk
 * @date 2020/7/13 12:04
 */
public class PriceChange {


    public static List getCurPrice(float scale , BigDecimal registPrice, BigDecimal chargePrice){
        List list = new ArrayList();
        BigDecimal bigScale =new BigDecimal(scale).setScale(2,BigDecimal.ROUND_UP) ;
        BigDecimal curRegistPrice = registPrice.multiply(bigScale);
        BigDecimal curChargePrice = chargePrice.multiply(bigScale);
        list.add(curRegistPrice);
        list.add(curChargePrice);
        return list;
    }
}
